package com.immortal.core.module.secure.auto;

import com.immortal.core.module.secure.service.DecryptHttpDecoder;
import com.immortal.core.module.secure.service.EncryptHttpEncoder;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>加解密自动配置
 *
 * @author wind
 * @version 1.0
 * @since 2018/12/20
 */
@Configuration
public class EncryptAutoConfiguration {
    @ConditionalOnMissingBean
    @Bean
    public EncryptHttpEncoder encryptHttpEncoder(){
        return  (o) -> null;
    }
    @ConditionalOnMissingBean
    @Bean
    public DecryptHttpDecoder decryptHttpDecoder(){
        return  (o) -> null;
    }

}
